package com.JohnCarloSalter.UserInterface;

import com.JohnCarloSalter.Receipt.PurchaseItem;
import com.JohnCarloSalter.Receipt.ReceiptComponent;
import com.JohnCarloSalter.ReceiptFactory.ReceiptFactory;
import java.util.ArrayList;

public class UserInterface {
	public static void main(String[] args) {
		ArrayList<PurchaseItem> purchases = new ArrayList<PurchaseItem>();
		
		purchases.add(new PurchaseItem("Nintendo Wii U", "Nintendo's latest console", 432, 1, 300.00));
		purchases.add(new PurchaseItem("Hyrule Warriors", "A video game for Wii U", 443, 1, 60.00));
		purchases.add(new PurchaseItem("Wii Remote", "A controller for the Wii U", 433, 4, 40.00));
		purchases.add(new PurchaseItem("56\" HD Plasma Hyper-X TV3D", "This TV is awesome!", 100, 1, 2000.00));
		
		ReceiptComponent receipt = new ReceiptFactory(purchases).getReceipt();
		receipt.print();
	}
}
